package ddd;

import ddd.valueobject.Gender;
import ddd.valueobject.PhoneNumber;

public class UserTest {
    public static void main(String[] args) {
        //addUserFail("steak",new PhoneNumber("13657746155"),new Gender(1));
    }

    public static void addUser(String name , String phone , String gender){
        if (phone == null || phone.equals("")) throw new RuntimeException("is null");
        if (gender == null || gender .equals("")) throw new RuntimeException("is null");
        if (gender.equals("男")){}

    }

    public static void addUserFail(String name , PhoneNumber phoneNumber , Gender gender){

    }
}
